
public class Camera implements Runnable {
	
	public static Camera Camera2D;
	
	public static int CameraXCoordinate = (int)DMastaGX.MasterGX.getX();
	
	public static int CameraYCoordinate = (int)DMastaGX.MasterGX.getY();
	
	public static void updateCamera(){
		
		// Handle Keys Pressed According to the Key Pressed Booleans
		reactToKeysPressed();
		// Handle Keys Released According to the Key Released Booleans
		reactToKeysReleased();
	}
	
	/** Methods to Handle Key Pressed Calculations */
	public static void reactToKeysPressed(){
		
		if(MasterControl.Up_Pressed == true)    handle_Up();
		if(MasterControl.Down_Pressed == true)  handle_Down();
		if(MasterControl.Left_Pressed == true)  handle_Left();
		if(MasterControl.Right_Pressed == true) handle_Right();
	}
	
	/** Methods to Handle Key Released Calculations */
	public static void reactToKeysReleased(){
		
		if(MasterControl.Up_Released == true)    stop_Up();
		if(MasterControl.Down_Released == true)  stop_Down();
		if(MasterControl.Left_Released == true)  stop_Left();
		if(MasterControl.Right_Released == true) stop_Right();
	}
	
	public static void handle_Up(){
		
		CameraYCoordinate = 10;
	}
	
	public static void handle_Down(){
		
		CameraYCoordinate = -10;
	}
	
	public static void handle_Left(){
		
		CameraXCoordinate = -10;
	}
	
	public static void handle_Right(){
		
		CameraXCoordinate = 10;
	}
	
	public static void stop_Up(){
		
		CameraYCoordinate = 0;
	}
	
	public static void stop_Down(){
		
		CameraYCoordinate = 0;
	}
	
	public static void stop_Left(){
		
		CameraXCoordinate = 0;
	}
	
	public static void stop_Right(){
		
		CameraXCoordinate = 0;
	}
	
	public void run(){
		
	  Camera2D = new Camera();
	  
	}

}
